From: Konrad Rzeszutek Wilk Date: Tue, 13 Sep 2016 16:11:44 +0000 (-0400) Subject: livepatch/tests: Make .livepatch.depends be read-only X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~375 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=9560649c50b6fae23278faae748369403dacc654;p=xen.git livepatch/tests: Make .livepatch.depends be read-only As currently during the injection of the build-id it ends up being marked as AW. We want it to be read-only. Reviewed-by: Ross Lagerwall Acked-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/xen/arch/x86/test/Makefile b/xen/arch/x86/test/Makefile index 23dff1d8fa..48ff84300f 100644 --- a/xen/arch/x86/test/Makefile +++ b/xen/arch/x86/test/Makefile @@ -55,7 +55,7 @@ $(LIVEPATCH): xen_hello_world_func.o xen_hello_world.o note.o note.o: $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(BASEDIR)/xen-syms $@.bin $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ - --rename-section=.data=.livepatch.depends -S $@.bin $@ + --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@ rm -f $@.bin # @@ -66,7 +66,7 @@ note.o: hello_world_note.o: $(LIVEPATCH) $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(LIVEPATCH) $@.bin $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ - --rename-section=.data=.livepatch.depends -S $@.bin $@ + --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@ rm -f $@.bin xen_bye_world.o: config.h